package cn.zn.modules.member.service.impl;

import cn.zn.framework.common.utils.PageInUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zn.framework.common.utils.PageUtils;

import cn.zn.modules.member.dao.MemberUserIndexDao;
import cn.zn.modules.member.entity.MemberUserIndexEntity;
import cn.zn.modules.member.service.MemberUserIndexService;


@Service("memberUserIndexService")
public class MemberUserIndexServiceImpl extends ServiceImpl<MemberUserIndexDao, MemberUserIndexEntity> implements MemberUserIndexService {

    @Override
    public PageUtils queryPage(PageInUtils<MemberUserIndexEntity> pageIn) {
        MemberUserIndexEntity entity = pageIn.getEntity();
        QueryWrapper<MemberUserIndexEntity> memberUserIndexQueryWrapper = Wrappers.query();
        if(entity != null){
            // 设置查询条件
        }
        IPage<MemberUserIndexEntity> pageResult = this.page(pageIn.getPageObj(), memberUserIndexQueryWrapper);
        return new PageUtils(pageResult);
    }

}